import { _decorator, Component, Node, UIOpacity } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('HoleAction')
export class HoleAction extends Component {

    @property({type:Node})
    holering:Node

    start() {
        //自动隐藏外圈
    }

    update(deltaTime: number) {
        
    }

    hide_holering(){
        if(this.holering){
            this.holering.active = false;
         }
    }

    hide(){
        if(this.node&&this.node.isValid&&this.node.getComponent(UIOpacity)){
            this.node.getComponent(UIOpacity).opacity = 0;
         }
         if(!this.node){
            // console.log("没这个光圈");
         }
    }
}

